package cn.com.lms.business.learning.persistence.entity.vo;

import io.swagger.v3.oas.annotations.media.Schema;

import java.math.BigDecimal;
import java.util.Date;

public class UserStatisticsListViewVo {

    @Schema(description = "计划名称")
    private String objName;
    @Schema(description = "计划id")
    private Long planId;
    @Schema(description = "用户id")
    private Long userId;
    @Schema(description = "学习计划创建时间")
    private Date createTime;
    @Schema(description = "起止时间")
    private Date startDate;
    @Schema(description = "结束时间")
    private Date endDate;
    @Schema(description = "完成比")
    private BigDecimal completionNum;
    @Schema(description = "最后一次学习时间")
    private Date lastStudyTime;
    @Schema(description = "学习时长")
    private BigDecimal learningHours;
    @Schema(description = "状态描述")
    private String stateText;


    public String getObjName() {
        return objName;
    }

    public void setObjName(String objName) {
        this.objName = objName;
    }

    public Long getPlanId() {
        return planId;
    }

    public void setPlanId(Long planId) {
        this.planId = planId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getStartDate() {
        return startDate;
    }

    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    public String getStateText() {
        return stateText;
    }

    public void setStateText(String stateText) {
        this.stateText = stateText;
    }

    public BigDecimal getCompletionNum() {
        return completionNum;
    }

    public void setCompletionNum(BigDecimal completionNum) {
        this.completionNum = new BigDecimal(completionNum==null?0:completionNum.intValue());
    }

    public Date getLastStudyTime() {
        return lastStudyTime;
    }

    public void setLastStudyTime(Date lastStudyTime) {
        this.lastStudyTime = lastStudyTime;
    }

    public BigDecimal getLearningHours() {
        return learningHours;
    }

    public void setLearningHours(BigDecimal learningHours) {
        this.learningHours = learningHours;
    }
}
